package cn.wolfcode.luowowo.scenic.mapper;

import cn.wolfcode.luowowo.common.query.ScenicDetailQueryObject;
import cn.wolfcode.luowowo.scenic.domain.ScenicComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScenicCommentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ScenicComment record);

    ScenicComment selectByPrimaryKey(Long id);

    List<ScenicComment> selectAll();

    int updateByPrimaryKey(ScenicComment record);

    List<ScenicComment> selectForList(ScenicDetailQueryObject qo);

    List<ScenicComment> selectByUserId(@Param("userId") Long userId, @Param("type") Long type);

    void updateStats(ScenicComment scenicComment);
}